Show completions with and without params#699
Show completions with and without params#699muffinmad wants to merge 6 commits intopalantir:developfrom muffinmad:mad/include_params_both
Conversation
|
This is an interesting idea, thanks @muffinmad! @andfoy, please review this one. |
|
This is why I disabled this completion snippets completely. Is it worth creating a different variable completely for this? As it won't make any sense to enable |
At first I was going to use include_params described as bool so I'm not sure if string is allowed.
Maybe
Or both variants of completion can be used if |
|
Having only snippets in completion is little annoying indeed so both variants of completion is used now when |
In some cases I don't want completion with snippets:
Assume cursor is at
|and completions are invoked. Applying completion will insert snippet and I must delete it in order to have just class/function name.IMO there are no way we can properly decide to include params or not.
My proposal is to include both candidates without and with params in completions list.
This PR add new option
include_params_both. Withinclude_paramsandinclude_params_bothenabled completions list will include both variants.There also side change:
labelis always equal toinsertTextin completion item. Is there any reason to completion label include all params?